﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using com.vs.General;
using com.vs.General.RF;
using com.vs.DataAccess.DO;
using com.vs.Task.BL;

namespace com.vs.RF.Web.task
{
    public partial class PutToEntry :RFDisplayPage
    {
        //private List<TaskDetailDO> ltTskDtl = null;
        protected TaskDetailDO tskDtlDO = null;
        //private int iIdx = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            go();
        }

        protected override void initData()
        {
            List<TaskDetailDO> ltToTaskDtl = null;
            try
            {
                ltToTaskDtl = (List<TaskDetailDO>)Session[RFSupport.TO_TASK_DETAIL_DO_LIST];
                if (null == ltToTaskDtl || ltToTaskDtl.Count < 1)
                {
                    Server.Transfer("~/task/TaskIDEntry.aspx?MSG=" + MessageManager.MSG_TSK_012);//"没有需要放货的任务"
                    return;
                }
                else
                {
                    this.tskDtlDO = ltToTaskDtl[0];
                    Session[RFSupport.TO_TASK_DETAIL_DO_LIST] = ltToTaskDtl;
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.LogException(rfSess, ex);
                stErrorMessage = ex.Message;
            }
        }

    }
}
